package service.interf;

public interface IIfwDeviceAuzInfo extends IBaseDataService {
	/**
	 * 获取主机数
	 * 
	 * @param sn
	 * @return
	 * @throws Exception
	 */
	public String getHostAllowed(String sn) throws Exception;

	/**
	 * 授权
	 * 
	 * @param model
	 * @param sn
	 * @param auzTime
	 * @param giveTime
	 * @return
	 * @throws Exception
	 */
	public String add(String model, String sn, int auzTime, int giveTime)
			throws Exception;

	/**
	 * 授权转移
	 * 
	 * @param sn
	 * @param sn2
	 * @return
	 * @throws Exception
	 */
	public String change(String sn, String sn2) throws Exception;

	/**
	 * 获取到期时间
	 * 
	 * @param sn
	 * @return
	 * @throws Exception
	 */
	public String getExpireTime(String sn) throws Exception;

	/**
	 * 获取到期时间
	 * 
	 * @param sn
	 * @param expireTime
	 * @return
	 * @throws Exception
	 */
	public String setExpireTime(String sn, String expireTime) throws Exception;

}
